import SubNode from './SubNode';
import { Consumer } from './App';

export const Node = () => (
  <div style={{ border: '1px solid green', padding: 12 }}>
    <h2>Node</h2>
    <Consumer>{(value) => <span>{value}</span>}</Consumer>
    <SubNode />
  </div>
);
